package com.gsy.controller;

import java.util.Optional;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class IndexController {

	@RequestMapping("/index")
	public String index(String name) {
		return "my name is " + Optional.ofNullable(name).orElse("GSY");
	}

}
